package com.aaa.backsystem.dao;

import com.aaa.backsystem.entity.Sale;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author gyc
 * @since 2020-07-23
 */
public interface SaleDao extends BaseMapper<Sale> {
    List<Sale> findBathSale(@Param("petrolStationId") Integer petrolStationId);

    List<Sale> findBuyYear(@Param("userId") Integer userId);

    /**
     * 散装油月度销售记录
     * @return
     */
    List<Sale> OilMonthlySales(@Param("year") String year,@Param("userId") Integer userId);
}
